package com.xdf.whiteaccount.dao;

import com.xdf.whiteaccount.entity.ContactCompany;
import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.Address;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * 版本号：20240401
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2025-5-15 9:19:37
 */
@Repository
public interface AddressMapper {
    int insert(Address record);

    int insertSelective(Address record);

    int multiInsert(List<Address> list);

    int updateByPrimaryKey(Address record);

    int updateByPrimaryKeySelective(Address record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    Address selectByPrimaryKey(Integer id);

    List<Address> selectAll();

    int save(Address record);
    int multiSave(List<Address> list);

    //================= 下面是 Example 代码 ==================
    List<Address> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") Address record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") Address record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    Address getNext(Integer id);
    Address getPrev(Integer id);
    Address getFirst();
    Address getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================

    List<Address> selectByParam(Address record);
}